package com.vgemv.jsutilitysdkdemo.module.Menu.SlowLive;

import com.vgemv.jsutilitysdk.Menu.JsMenuView.JsMenuItemVm.JsMenuItemVm;

import java.util.ArrayList;

public class SlowLiveVm extends JsMenuItemVm {

    public String title;
    public String playUrlString;
    public String imageUrlString;

    public static int itemViewHeight = 300;
    public static int itemViewWidth = itemViewHeight / 9 * 16;
    public static int labelHeight = 70;
    public static int imageHeight = itemViewHeight - labelHeight;

    public SlowLiveVm(String title, String imageUrlString) {
        super(2);
        this.imageUrlString = imageUrlString;
        this.title = title;
        getUnselectedStyle().mi_borderWidth = 3;
    }

    public static ArrayList<JsMenuItemVm> testArray() {
        ArrayList<JsMenuItemVm> arrayList = new ArrayList<JsMenuItemVm>();
        {
            SlowLiveVm vm= new SlowLiveVm("贡园荔枝","https://img.alicdn.com/imgextra/i3/219417768/O1CN01OEuXoF27FnKz3bPUJ_!!219417768.jpg");
            vm.getUnselectedStyle().mi_width = itemViewWidth;
            vm.getUnselectedStyle().mi_height = itemViewHeight;
            arrayList.add(vm);
        }
        {
            SlowLiveVm vm= new SlowLiveVm("太空水稻","https://img.alicdn.com/imgextra/i2/219417768/O1CN01R3TAb327FnKtVpYjT_!!219417768.png");
            vm.getUnselectedStyle().mi_width = itemViewWidth;
            vm.getUnselectedStyle().mi_height = itemViewHeight;
            arrayList.add(vm);
        }
        {
            SlowLiveVm vm= new SlowLiveVm("海底珊瑚","https://img.alicdn.com/imgextra/i1/219417768/O1CN01jFw1R327FnKpRJwEg_!!219417768.jpg");
            vm.getUnselectedStyle().mi_width = itemViewWidth;
            vm.getUnselectedStyle().mi_height = itemViewHeight;
            arrayList.add(vm);
        }
        {
            SlowLiveVm vm= new SlowLiveVm("超级西瓜","https://img.alicdn.com/imgextra/i4/219417768/O1CN019Z73Ko27FnKseMb5k_!!219417768.jpg");
            vm.getUnselectedStyle().mi_width = itemViewWidth;
            vm.getUnselectedStyle().mi_height = itemViewHeight;
            arrayList.add(vm);
        }
        {
            SlowLiveVm vm= new SlowLiveVm("黄金芒果","https://img.alicdn.com/imgextra/i4/219417768/O1CN01xKXXzv27FnKs5kq47_!!219417768.jpg");
            vm.getUnselectedStyle().mi_width = itemViewWidth;
            vm.getUnselectedStyle().mi_height = itemViewHeight;
            arrayList.add(vm);
        }
        {
            SlowLiveVm vm= new SlowLiveVm("香甜橙子","https://img.alicdn.com/imgextra/i1/219417768/O1CN01NxURQy27FnKtmy6MK_!!219417768.jpg");
            vm.getUnselectedStyle().mi_width = itemViewWidth;
            vm.getUnselectedStyle().mi_height = itemViewHeight;
            arrayList.add(vm);
        }

        return arrayList;
    }

}
